<?php

namespace core;

class Controller
{
    private $view;

    public function __construct()
    {
        $template_engine = C('TEMPLATE_ENGINE');
        $view = __NAMESPACE__.'\\'.$template_engine."View";
        $this->view = new $view();
    }

    public function __call($name, $arg)
    {
        return call_user_func_array(array($this->view, $name), $arg);
    }
}
